package tool.dialog;

import inputstream.StringStream;

/**rapprasenta una textfield in grado di leggere una sequenza
 * di numeri interi
 * 
 * @author Koldar
 * @version 1.0 
 *
 */
public class JIntegerArrayField extends JArrayField<Integer>{

	private static final long serialVersionUID = -8429652932541769055L;
	
	public JIntegerArrayField() {
		super(Integer[].class,"(+|-)?\\d+");
	}

	@Override
	public Integer readType(StringStream stream) {
		return stream.readInt();
	}

	@Override
	public Integer[] getArrayInstance(int length) {
		return new Integer[length];
	}

}
